// Copyright (C) 2010  Joan Puigcerver Perez, <joapuipe@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//

#ifndef __PERSON_HPP__
#define __PERSON_HPP__

#include <Node.hpp>
#include <BasicTypes.hpp>
#include <string>
#include <list>

/**
 * \class Person
 *
 * Class derived from Node. It represents a single person in the
 * bipartite graph. The other class of derived node is Movie.
 * \see Node
 * \see Movie
 */
class Person: public Node {
private:
  /** Person name. */
  const std::string _name;
  /** Person akas. */
  std::list<std::string> _akas;

public:
  /**
   * Classic constructor. This sets the object attributes to the 
   * indicated by the constructor arguments, including the Node identifier.
   * @param id Node identifier.
   * @param name the name of the person.
   */
  Person(const uint32_t id, const std::string& name);

  /**
   * This method returns the name of the person.
   */
  const std::string& name(void) const;

  const std::string& add_aka(const std::string& aka);
};

#endif
